home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Converters / Convert_MacPaint / Source / shared.subproj / RCS / Reply.h,v < prev    next >
Text File  |  1995-06-12  |  3KB  |  125 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     92.03.29.12.12.59;  author death;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     92.03.22.15.47.18;  author death;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @This file is the header file for the reply object.
  22. @
  23.  
  24.  
  25. 1.2
  26. log
  27. @ turns out that 2.0 wants init calls to be in the object, not the class.
  28. Modified accordingly, nad moved free into object also.
  29. @
  30. text
  31. @/*
  32. ====================================================================
  33. This is the interface file for the Reply class.  Full documentation for this class can be found in the Reply.rtf file.  I will not duplicate all that fine information here.
  34.     This is $Revision: 1.1 $ of this file
  35.     It was last modified by $Author: death $ on $Date: 92/03/22 15:47:18 $
  36. Note that this file was created while using the New Century Schoolbook Roman typeface.  You may find that some things line up strangely if you don't use that family.
  37. $Log:    Reply.h,v $
  38.  * Revision 1.1  92/03/22  15:47:18  death
  39.  * Initial revision
  40.  * 
  41. ====================================================================
  42. */
  43.  
  44. //
  45. // Import our parent class' definition
  46. //
  47. #import "ErrorInfo.h"
  48. #import "generalTypes.h"
  49.  
  50. //
  51. // Now, define our interface.   Again, see the ErrorInfo.rtf document for general info.
  52. //
  53.  
  54. @@interface Reply:ErrorInfo
  55. {
  56.     long int    dataType;
  57.     unsigned long int    theData;
  58. }
  59.     
  60. - (id) initReplyWithCode: (long int) code Text: (Cstring) text Kind: (long int) kind
  61.     Data: (void*) dataVal Type: (int) dataType;
  62. - (id) initReplyWithCode: (long int) code Text: (Cstring) text Data: (void*) dataVal
  63.     Type: (int) dataType;
  64. - (id) initReplyWithCode: (long int) code Text: (Cstring) text Data: (void*) dataVal;
  65. - free;
  66.  
  67. - (byte) getByte;
  68. - (char) getChar;
  69. - (Cstring) getCstring;
  70. - (void*) getGeneral;
  71. - (short) getShort;
  72. - (int) getInt;
  73. - (long int) getLong;
  74. - (id) getObject;
  75. - (unsigned short) getUnsignedShort;
  76. - (unsigned int) getUnsignedInt;
  77. - (unsigned long int) getUnsignedLong;
  78.  
  79.  
  80. @@end
  81.  
  82.  
  83. //
  84. // Now, define some constants used by the class to define the kinds of data types we use
  85. //
  86.  
  87. #define TYPE_NONE        0
  88. #define TYPE_GENERAL    1
  89. #define TYPE_CSTRING    2
  90. #define TYPE_BYTE        3
  91. #define TYPE_CHAR        4
  92. #define TYPE_SHORT        5
  93. #define TYPE_INT        6
  94. #define TYPE_LONG        7
  95. #define TYPE_USHORT    8
  96. #define TYPE_UINT        9
  97. #define TYPE_ULONG        10
  98. #define TYPE_OBJECT    11
  99. @
  100.  
  101.  
  102. 1.1
  103. log
  104. @Initial revision
  105. @
  106. text
  107. @d4 2
  108. a5 2
  109.     This is $Revision: $ of this file
  110.     It was last modified by $Author: $ on $Date: $
  111. d7 4
  112. a10 1
  113. $Log:$
  114. d30 1
  115. a30 1
  116. + (id) initReplyWithCode: (long int) code Text: (Cstring) text Kind: (long int) kind
  117. d32 1
  118. a32 1
  119. + (id) initReplyWithCode: (long int) code Text: (Cstring) text Data: (void*) dataVal
  120. d34 2
  121. a35 2
  122. + (id) initReplyWithCode: (long int) code Text: (Cstring) text Data: (void*) dataVal;
  123. + free;
  124. @
  125.